package com.hdoit.kylin.logical.group.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.tennetcn.common.dao.base.impl.SuperService;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.kylin.logical.group.dao.ITaskDao;
import com.hdoit.kylin.logical.group.model.Task;
import com.hdoit.kylin.logical.group.service.ITaskService;
import com.hdoit.kylin.logical.viewmodel.TaskSearch;
/**
* @author luozhicheng
* @email
* @createtime 2017年07月18日 20:39:50
* @comment
*/
@Component
public class TaskServiceImpl extends SuperService<Task> implements ITaskService{
	
	private ITaskDao taskDao;
	
	public ITaskDao getTaskDao() {
		return taskDao;
	}

	@Resource
	public void setTaskDao(ITaskDao taskDao) {
		this.taskDao = taskDao;
	}

	@Override
	public List<Task> queryListByGroupId(TaskSearch search,PagerModel pagerModel) {
		return taskDao.queryListByGroupId(search,pagerModel);
		
	}

	@Override
	public int queryCountByGroupId(TaskSearch search) {
		return taskDao.queryCountByGroupId(search);
	
	}
}